package com.xy.dao;

import com.xy.pojo.User;

import java.util.List;

public interface UserDao {

    public List<User> findAll() throws Exception;

    public User findByCondition(User user) throws Exception;

    public int insert(User user) throws Exception;

    public int update(User user) throws Exception;

    public int deleteById(int uid) throws Exception;
}
